package cn.rongdao.jrkabao.ui.IdentificationVerificate;

import android.content.Context;
import android.text.InputType;

import com.mifengkong.frtools.ui.activity.FRStartActivity;

/**
 * Created by jiangyongxing on 2017/8/22.
 * 描述：贷款所用到的身份验证界面
 */

public class LoanIdentificationActivity extends IdentificationActivity {


    public static void start(Context activity) {
        FRStartActivity.start(activity, LoanIdentificationActivity.class );
    }

    @Override
    protected String setTitle() {
        return "身份验证";
    }

    @Override
    protected void saveIdCardInfoSuccess() {
        setEditTextNotEdit();
        finish();
    }

    private void setEditTextNotEdit() {
        nameEditText.setEnabled(false);
        nameEditText.setFocusable(false);
        nameEditText.setFocusableInTouchMode(false);
        nameEditText.setInputType(InputType.TYPE_NULL);
        numberEditText.setFocusable(false);
        numberEditText.setEnabled(false);
        numberEditText.setFocusableInTouchMode(false);
        numberEditText.setInputType(InputType.TYPE_NULL);
    }

}
